-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Switch service feature gates to be auto generated #14494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| featuregate.WithRegisterFromVersion("v0.122.0"), | ||
| featuregate.WithRegisterDescription("Allow starting the Collector without starting any pipelines."), | ||
| ) | ||
| AllowNoPipelines = metadata.ServiceAllowNoPipelinesFeatureGate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO it would be nice not to make this public. But we use it in otelcol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed it would be nice to have it private, but unfortunately the otelcol/service responsibility distinction can be a little fuzzy. It was already public before this PR, so it's fine to leave it for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I've been pondering is whether it would make more sense to have 2 feature gates with the same name.
One in otelcol, and one in service. Then, both could be private. And both components would be documented.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14494 +/- ##
=======================================
Coverage 91.84% 91.84%
=======================================
Files 677 677
Lines 42699 42699
=======================================
Hits 39219 39219
Misses 2425 2425
Partials 1055 1055 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
evan-bradley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excited to have this. Thanks.
Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
This switches the service's feature gates to be automatically generated, so they are documented as well.
Related: #14067